var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'Express' });
});


router.post('/api', function(req, res, next) {
    console.log('req.body', req.body);
    console.log('req.body', req.body);
    res.send(JSON.stringify(req.body)+JSON.stringify(req.params));

});
module.exports = router;
